home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / oops / r3gmanag.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  4.5 KB  |  167 lines

  1.  
  2. // JavaScript wrapper for r3gmanag.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_GMANAGER_H = 1;
  7. include("oops/r3widget.js")
  8.  
  9.  
  10. var R3CLID_GMANAGER = 24;
  11.  
  12.  
  13.  
  14.  
  15. // Description: insert a new gadget to be slave
  16. // p3: Tag[], tag list containg at least R3GMA_Slave. Inherited classes might need more tags. 
  17.  
  18. R3GMM_INSERT = 24000;
  19.  
  20. function mR3GMM_INSERT(p3) {
  21.   Do(this.r3obj, 24000, p3, R3TID_TAG, R3TNF_ARRAY);
  22. }
  23.  
  24. // Description: remove a managed slave
  25. // p3: Tag[], tag list containg R3GMA_Slave. 
  26.  
  27. R3GMM_REMOVE = 24001;
  28.  
  29. function mR3GMM_REMOVE(p3) {
  30.   Do(this.r3obj, 24001, p3, R3TID_TAG, R3TNF_ARRAY);
  31. }
  32.  
  33. // Virtual method
  34.  
  35. R3GMM_REALREFRESH = 24002;
  36.  
  37. function mR3GMM_REALREFRESH() {
  38.   DoA(this.r3obj, 24002, 0, R3TID_INTEGER, 0);
  39. }
  40.  
  41.  
  42. R3GMM_REFRESHDIRTY = 24003;
  43.  
  44. function mR3GMM_REFRESHDIRTY() {
  45.   DoA(this.r3obj, 24003, 0, R3TID_INTEGER, 0);
  46. }
  47.  
  48. // Description: recursively enumerate all slaves. For each slave send a message to p1 like this:    R3SendMsgA2(p1, p2,
  49. //      slave, p3);
  50. // Virtual method
  51. // Returns: Boolean, TRUE if enumeration should continue, otherwise a value <= 0
  52. // p1: Object, Object to be sent a message to for each slave.
  53. // p2: Integer, Method to send to object.
  54. // p3: Object, private data to send as last param to object 
  55.  
  56. R3GMM_ENUMGADGETS = 24004;
  57.  
  58. function mR3GMM_ENUMGADGETS(p1, p2, p3) {
  59.   return   DoA3(this.r3obj, 24004, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
  60. }
  61.  
  62.  
  63. R3GMM_ISVISIBLE = 24005;
  64.  
  65. function mR3GMM_ISVISIBLE() {
  66.   DoA(this.r3obj, 24005, 0, R3TID_INTEGER, 0);
  67. }
  68.  
  69. // Description: changes the insert parameters of a slave
  70. // p3: Tag[], tag list containg at least R3GMA_Slave. Inherited classes might support more tags. 
  71.  
  72. R3GMM_SETINSERTPARAMS = 24006;
  73.  
  74. function mR3GMM_SETINSERTPARAMS(p3) {
  75.   Do(this.r3obj, 24006, p3, R3TID_TAG, R3TNF_ARRAY);
  76. }
  77.  
  78. // Description: gets the insert parameters of a slave
  79. // p3: Tag[], tag list containg at least R3GMA_Slave. Inherited classes might support more tags. 
  80.  
  81. R3GMM_GETINSERTPARAMS = 24007;
  82.  
  83. function mR3GMM_GETINSERTPARAMS(p3) {
  84.   Do(this.r3obj, 24007, p3, R3TID_TAG, R3TNF_ARRAY);
  85. }
  86.  
  87.  
  88.  
  89.  
  90. var R3GMA_Slave = 24500; // Object
  91. R3GMA_Stealth = 24502;
  92. function SetR3GMA_Stealth(value) {
  93.   R3Set(this.r3obj, R3GMA_Stealth, value, R3TID_BOOLEAN, 0); 
  94. }
  95.  
  96. function GetR3GMA_Stealth() {
  97.   return R3Get(this.r3obj, R3GMA_Stealth, R3TID_BOOLEAN, 0); 
  98. }
  99.  
  100. R3GMA_NoShrink = 24503;
  101. function SetR3GMA_NoShrink(value) {
  102.   R3Set(this.r3obj, R3GMA_NoShrink, value, R3TID_INTEGER, 0); 
  103. }
  104.  
  105. function GetR3GMA_NoShrink() {
  106.   return R3Get(this.r3obj, R3GMA_NoShrink, R3TID_INTEGER, 0); 
  107. }
  108.  
  109. R3GMA_ShrinkIfLargerWidth = 24504;
  110. function SetR3GMA_ShrinkIfLargerWidth(value) {
  111.   R3Set(this.r3obj, R3GMA_ShrinkIfLargerWidth, value, R3TID_INTEGER, 0); 
  112. }
  113.  
  114. function GetR3GMA_ShrinkIfLargerWidth() {
  115.   return R3Get(this.r3obj, R3GMA_ShrinkIfLargerWidth, R3TID_INTEGER, 0); 
  116. }
  117.  
  118. R3GMA_ShrinkIfLargerHeight = 24505;
  119. function SetR3GMA_ShrinkIfLargerHeight(value) {
  120.   R3Set(this.r3obj, R3GMA_ShrinkIfLargerHeight, value, R3TID_INTEGER, 0); 
  121. }
  122.  
  123. function GetR3GMA_ShrinkIfLargerHeight() {
  124.   return R3Get(this.r3obj, R3GMA_ShrinkIfLargerHeight, R3TID_INTEGER, 0); 
  125. }
  126.  
  127. R3GMA_ParentManager = 24506;
  128. function SetR3GMA_ParentManager(value) {
  129.   R3Set(this.r3obj, R3GMA_ParentManager, value, R3TID_OBJECT, 0); 
  130. }
  131.  
  132. function GetR3GMA_ParentManager() {
  133.   return R3ToJS(R3Get(this.r3obj, R3GMA_ParentManager, R3TID_OBJECT, 0)); 
  134. }
  135.  
  136.  
  137.  
  138. function r3Gmanager () { 
  139.    this.base = r3God;
  140.    if(arguments.length) {
  141.       this.base(R3CLID_GMANAGER, arguments);
  142.    }
  143.    // Methods
  144.    this.INSERT=mR3GMM_INSERT;
  145.    this.REMOVE=mR3GMM_REMOVE;
  146.    this.REALREFRESH=mR3GMM_REALREFRESH;
  147.    this.REFRESHDIRTY=mR3GMM_REFRESHDIRTY;
  148.    this.ENUMGADGETS=mR3GMM_ENUMGADGETS;
  149.    this.ISVISIBLE=mR3GMM_ISVISIBLE;
  150.    this.SETINSERTPARAMS=mR3GMM_SETINSERTPARAMS;
  151.    this.GETINSERTPARAMS=mR3GMM_GETINSERTPARAMS;
  152.  
  153.    // Attributes
  154.    this.GetStealth=GetR3GMA_Stealth;
  155.    this.SetStealth=SetR3GMA_Stealth;
  156.    this.GetNoShrink=GetR3GMA_NoShrink;
  157.    this.SetNoShrink=SetR3GMA_NoShrink;
  158.    this.GetShrinkIfLargerWidth=GetR3GMA_ShrinkIfLargerWidth;
  159.    this.SetShrinkIfLargerWidth=SetR3GMA_ShrinkIfLargerWidth;
  160.    this.GetShrinkIfLargerHeight=GetR3GMA_ShrinkIfLargerHeight;
  161.    this.SetShrinkIfLargerHeight=SetR3GMA_ShrinkIfLargerHeight;
  162.    this.GetParentManager=GetR3GMA_ParentManager;
  163.    this.SetParentManager=SetR3GMA_ParentManager;
  164. }
  165.  
  166. r3Gmanager.prototype=new r3Widget;
  167. // r3gmanag.h_H